#include "StdAfx.h"
#include "DD_ImageAnaly.h"

#include "xhImageAnaly.h"

DD_ImageAnaly::DD_ImageAnaly(void)
{
	m_pxhImageAnaly = NULL;
}

DD_ImageAnaly::~DD_ImageAnaly(void)
{
	MySafeDelete(m_pxhImageAnaly);
}


//init
int DD_ImageAnaly::Initialize()
{
	MySafeDelete(m_pxhImageAnaly);
	m_pxhImageAnaly = new xhImageAnaly;
	return m_pxhImageAnaly->Initialize();
}
//set parent hwnd
int DD_ImageAnaly::SetHwnd(HWND hWnd)
{
	return m_pxhImageAnaly->SetHwnd(hWnd);
}


//standard iamge
int DD_ImageAnaly::LoadStdFile(char *pFileName)
{
	return m_pxhImageAnaly->LoadStdFile(pFileName);
}
//
int DD_ImageAnaly::SetStdImgBuffer(zkImgBitInfo *pImgInfo)
{
	return m_pxhImageAnaly->SetStdImgBuffer(pImgInfo);
}
//
int DD_ImageAnaly::StdImgOperate(DWORD dwAnalyType,void *pVoid)
{
	return m_pxhImageAnaly->StdImgOperate(dwAnalyType,pVoid);
}


//To be Checked image
int DD_ImageAnaly::SetChkImgBuffer(zkImgBitInfo *pImgInfo)
{
	return m_pxhImageAnaly->SetChkImgBuffer(pImgInfo);
}
//
int DD_ImageAnaly::ChkImgOperate(DWORD dwAnalyType,void *pVoid )
{
	return m_pxhImageAnaly->ChkImgOperate(dwAnalyType,pVoid);
}


int DD_ImageAnaly::ImgAnaly()
{
	return m_pxhImageAnaly->ImgAnaly();
}


int	DD_ImageAnaly::Draw(void *pVoid)
{
	return m_pxhImageAnaly->Draw(pVoid);
}

int DD_ImageAnaly::ImageCtrl(DWORD dwType,void *pVoid)
{
	return m_pxhImageAnaly->ImageCtrl(dwType,pVoid);
}